<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<s:errors/>

<table class="form">
    <tr>
        <th><s:label for="h1" name="humans.name"/></th>
        <td><s:text id="h1" name="human.name"/></td>
    </tr>
    <tr>
        <th><s:label for="h2" name="humans.gender"/></th>
        <td><s:select id="h2" name="human.gender">
            <s:options-enumeration enum="cz.muni.fi.hauntedhouses.enums.Gender"/>
        </s:select></td>
    </tr>
    <tr>
        <th><s:label for="h3" name="humans.scareMeter"/></th>
        <td><s:text id="h3" name="human.scareMeter"/></td>
    </tr>
    <tr>
        <th><s:label for="h4" name="humans.resistance"/></th>
        <td><s:text id="h4" name="human.resistance"/></td>
    </tr>
    <tr>
        <th><s:label for="h5" name="humans.worstFear"/></th>
        <td><s:select id="h5" name="human.worstFear">
            <s:options-enumeration enum="cz.muni.fi.hauntedhouses.enums.Fear"/>
        </s:select></td>
    </tr>
    <tr>
        <th><s:label for="h6" name="humans.house"/></th>
        <td><s:select id="h6" name="human.house.id">
              <s:option value=""><f:message key="selectOne"/></s:option>
              <s:options-collection collection="${housesBean.houses}" label="name" value="id"/>
            </s:select>
        </td>
    </tr>
</table>